


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="layout" content="main" />
<g:set var="entityName"
	value="${message(code: 'subTask.label', default: 'SubTask')}" />
<title><g:message code="default.create.label"
	args="[entityName]" /></title>
</head>
<body>
<div class="nav"><span class="menuButton"><a class="home"
	href="${createLink(uri: '/')}">Home</a></span> <span class="menuButton"><g:link
	class="list" action="list">
	<g:message code="default.list.label" args="[entityName]" />
</g:link></span></div>
<div class="body">
<h1><g:message code="default.create.label" args="[entityName]" /></h1>
<g:if test="${flash.message}">
	<div class="message">
	${flash.message}
	</div>
</g:if> <g:hasErrors bean="${subTaskInstance}">
	<div class="errors"><g:renderErrors bean="${subTaskInstance}"
		as="list" /></div>
</g:hasErrors> <g:form action="save" method="post">
	<div class="dialog">
	<table>
		<tbody>


			<tr class="prop">
				<td valign="top" class="name"><label for="task"><g:message
					code="subTask.task.label" default="Task" /></label></td>
				<td valign="top"
					class="value ${hasErrors(bean: subTaskInstance, field: 'task', 'errors')}">
				<g:select name="task.id" from="${Task.list()}" optionKey="id"
					value="${subTaskInstance?.task?.id}" optionValue="name" /></td>
			</tr>


			<tr class="prop">
				<td valign="top" class="name"><label for="phaseName"><g:message
					code="subTask.phaseName.label" default="Phase Name" /></label></td>
				<td valign="top"
					class="value ${hasErrors(bean: subTaskInstance, field: 'phaseName', 'errors')}">
				<g:textField name="phaseName" value="${subTaskInstance?.phaseName}" />
				</td>
			</tr>
			
			<tr class="prop">
				<td valign="top" class="name"><label for="estimatedTime"><g:message
					code="subTask.estimatedTime.label" default="Estimated Time" /></label></td>
				<td valign="top"
					class="value ${hasErrors(bean: subTaskInstance, field: 'estimatedTime', 'errors')}">
				<g:textField name="estimatedTime"
					value="${fieldValue(bean: subTaskInstance, field: 'estimatedTime')}" />
				</td>
			</tr>



			<tr class="prop">
				<td valign="top" class="name"><label for="unitForPhase"><g:message
					code="subTask.unitForPhase.label" default="Unit For Phase" /></label></td>
				<td valign="top"
					class="value ${hasErrors(bean: subTaskInstance, field: 'unitForPhase', 'errors')}">
				<g:textField name="unitForPhase"
					value="${fieldValue(bean: subTaskInstance, field: 'unitForPhase')}" />
				</td>
			</tr>

		</tbody>
	</table>
	</div>
	<div class="buttons"><span class="button"><g:submitButton
		name="create" class="save"
		value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
	</div>
</g:form></div>
</body>
</html>
